import { createApp } from 'vue'
import { useNuTui } from '@/plugins/index'
// import '@nutui/nutui-taro/dist/style.css'
import '@nutui/nutui-taro/dist/styles/themes/default.scss';
import store from '@/store/index'
import Layout from "@/components/layout/index.vue"
import { getSystem } from '@/hooks/useTaro'

import './app.scss'

const App = createApp({
  async onLaunch(){
    await getSystem()
  },
  onShow () {

  },
  // 入口组件不需要实现 render 方法，即使实现了也会被 taro 所覆盖
})

App.component('Layout',Layout)

useNuTui(App)

App.use(store)

export default App
